#include "XGUI_APP.h"
#include "lvgl/lvgl.h"
#include "xGUI_DEMO.h"
#include <windows.h>
void gui_main (void)
{
    // 设置控制台输出为 UTF-8 编码
    SetConsoleOutputCP(65001);
    // 设置控制台输入为 UTF-8 编码（可选）
    SetConsoleCP(65001);

    LV_LOG_USER("LVGL initialization completed!");
    LV_LOG_USER("中文输出测试!");
    DEMO_bar_1();



    while (1)
    {
        /* Periodically call the lv_task handler.
         * It could be done in a timer interrupt or an OS task too.*/
        lv_timer_handler();
        usleep(5 * 1000);
    }
}